﻿using ERPEF.Model;
using ERPIService;
using Microsoft.EntityFrameworkCore;
using S4Project;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPService
{
    public class inv_goods_inventoryService : inv_goods_inventoryIService
    {
        private readonly MyDbContext MyDbContext;
        public inv_goods_inventoryService(MyDbContext myDb)
        {
            this.MyDbContext = myDb;
        }
        public async Task<List<inv_goods_inventory>> Query()
        {
            // return await MyDbContext.bs_Warehouse.ToListAsync();
            return await MyDbContext.inv_goods_inventory.ToListAsync();
        }

       
    }
}
